"use client";
import Box from "@/components/Box";
import { Link } from "@/i18n/routing";
import { useUserInfoStore } from "@/stores/useUserInfoStore";
import { copyText } from "@/utils/methods";
import { LuckyWheel } from "@lucky-canvas/react";
import { useCountDown } from "ahooks";
import { Popup, Toast } from "antd-mobile";
import clsx from "clsx";
import { useTranslations } from "next-intl";
import Image from "next/image";
import { useRef, useState } from "react";
import LotteryWheel from "./LotteryWheel";
import styles from "./style.module.scss";
const CashMainCom = () => {
return (
{" "}
R$ 94.15
SACAR{" "}
{" "}
Ainda e necessário 5.85 para realizar do
saque{" "}
);
};
const DrawMain1 = () => {
return (
{/*

*/}
{/*

*/}
{/*

*/}
{/*
*/}
{/*

*/}
{/*
*/}
{/*

*/}
{/*
*/}
{/*
*/}
);
};
const DrawContent = () => {
return (
Expira em 2d 19:18:13
Convide amigos para ajudar com saques
);
};
type Dtltype = "left" | "right";
const LeftListClient = () => {
const winListData = Array(500).fill("1");
return (
<>
{winListData.length > 0 &&
winListData.map((item, index) => {
return (
5533******412
Acabou de saca
+100
R$
);
})}
>
);
};
const Report = () => {
const [activeTab, setActiveTab] = useState("left");
const handler = (dtl: Dtltype) => {
setActiveTab(dtl);
};
const activeClass = clsx(
styles.vanTabItem,
activeTab === "left" ? styles.vanTabAcriveLeft : styles.vanTabAcriveRight
);
return (
handler("left")}
>
Relatório
handler("right")}
>
Minha Referencia
{activeTab === "left" ? : null}
Regras
- 1.Você pode iniciar um saque quando o valor acumulado atingir 100 BRL.
-
2.Convidar amigos para se registrarem no 9f.com irá ajudá- lo a sacar
dinheiro rapidamente.
- 3. Cada usuário receberá uma única rodada grátis por dia.
-
4.Cada usuário tem um período de validade de 3 dias para cada atividade e
pode participar da atividade várias vezes.
-
5.Se você receber um bônus de dinheiro extra, pode jogar jogos de graça e
ganhar ainda mais dinheiro real.
- 6.Se voce nao retirar o dinheiro dentro de 3 dias,ele ser perdido.
);
};
const WheelWallet = () => {
const user = useUserInfoStore((state) => state.userInfo);
return (
Conta
{user.user_phone}
R$
111
Faltam para O saque
R$9.36
);
};
const DrawMain = () => {
const myLucky = useRef();
const desktopWheelRef = useRef();
const [blocks] = useState([
{
padding: "0",
imgs: [
{
src: "/wheels/wheel.png",
width: "100%",
height: "100%",
},
],
},
]);
const [prizes] = useState([
{ fonts: [{ text: "0", top: "20%" }] },
{ fonts: [{ text: "1", top: "20%" }] },
{ fonts: [{ text: "2", top: "20%" }] },
{ fonts: [{ text: "3", top: "20%" }] },
{ fonts: [{ text: "4", top: "20%" }] },
{ fonts: [{ text: "5", top: "20%" }] },
{ fonts: [{ text: "6", top: "20%" }] },
{ fonts: [{ text: "7", top: "20%" }] },
]);
const [buttons] = useState([
{
radius: "30%",
imgs: [
{
src: "/wheels/pointer.png",
width: "100%",
top: "-130%",
},
],
},
]);
const [defaultConfig] = useState({
offsetDegree: 20,
});
return (

{/*定位到中心圆*/}
{/* 图片切换动画 */}
{/*
*/}
{/*
*/}
{
// 点击抽奖按钮会触发star回调
myLucky.current?.play();
setTimeout(() => {
const index = (Math.random() * 6) >> 0;
myLucky.current?.stop(index);
}, 2500);
}}
onEnd={(prize: any) => {
// 抽奖结束会触发end回调
alert("恭喜你抽到 " + prize.fonts[0].text + " 号奖品");
}}
/>

{/*定位到中心圆*/}
{/* 图片切换动画 */}
{/*
*/}
{/*
*/}
{
// 点击抽奖按钮会触发star回调
desktopWheelRef.current?.play();
setTimeout(() => {
const index = (Math.random() * 6) >> 0;
desktopWheelRef.current?.stop(index);
}, 2500);
}}
onEnd={(prize: any) => {
// 抽奖结束会触发end回调
alert("恭喜你抽到 " + prize.fonts[0].text + " 号奖品");
}}
/>
);
};
const CountdownClient = () => {
const [_, formattedRes] = useCountDown({
leftTime: 60 * 100000,
});
const { days, hours, minutes, seconds } = formattedRes;
return (
{String(hours).padStart(2, "0")}:{String(minutes).padStart(2, "0")}:
{String(seconds).padStart(2, "0")}
);
};
const ShareClient = () => {
const [visible, setVisible] = useState(false);
const shareUrl = process.env.NEXT_PUBLIC_SHARE_URL as string;
const url = encodeURIComponent(`${shareUrl}`);
const text = encodeURIComponent(`Receba 100 BRL de graça,Pix SAQUE RÁPIDO`);
const t = useTranslations();
const SHARE_SOURCE = [
{
icon: "/summary/Facebook.png",
label: "Facebook",
shareUrl: `https://www.facebook.com/sharer/sharer.php?u=${url}&t=${text}`,
},
{
icon: "/summary/WhatsApp.png",
label: "WhatsApp",
shareUrl: `https://api.whatsapp.com/send?text=${text}`,
},
{
icon: "/summary/Telegram.png",
label: "Telegram",
shareUrl: `https://t.me/share/url?url=${url}&text=${text}`,
},
{
icon: "/summary/Twitter.png",
label: "Twitter",
shareUrl: `https://twitter.com/intent/tweet?text=${text}`,
},
{
icon: "/summary/Email.png",
label: "Email",
shareUrl: `mailto: ?&subject=&cc=&bcc=&body=${url}%0A${text}`,
},
];
const copy = (text: string) => {
copyText(text);
Toast.show({ icon: "success", content: t("SummaryPage.copySuc"), maskClickable: false });
};
return (
<>
Compartilhe mais, saque mais rápido.
setVisible(true)}
>
{
setVisible(false);
}}
onClose={() => {
setVisible(false);
}}
showCloseButton
bodyStyle={{ height: "2.9rem", background: "#fff" }}
>
1.Convide amlgos para ajudar com saques
Compartilhe este link de indicação com seus amigos
{shareUrl}
copy(shareUrl)}
>
{t("SummaryPage.Cópia")}
2.Enviar convite para jogador aleatório ajudar
Enviar Mensagem
no WhatsAPP
>
);
};
const CashWheelClient = () => {
return (
<>
{/*倒计时*/}
{/*分享*/}
{/**/}
{/**/}
{/**/}
>
);
};
export default CashWheelClient;